(x_bitmap_icon): Don't free icon_bitmap;
authorRichard M. Stallman <rms@gnu.org>
Sun, 30 May 1993 00:55:42 +0000 (00:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 30 May 1993 00:55:42 +0000 (00:55 +0000)
create it if it hasn't been created before.

src/xterm.c

index 9afdd7008f613aa6f94278227c1478c2b255b9f9..db0f61e8f1dd2a3c0233e7d569356b10a31bba2a 100644 (file)
@@ -3631,12 +3631,10 @@ x_bitmap_icon (f)
     return 1;
 
 #ifdef HAVE_X11
-  if (icon_bitmap)
-    XFreePixmap (x_current_display, icon_bitmap);
-  
-  icon_bitmap =
-    XCreateBitmapFromData (x_current_display, FRAME_X_WINDOW (f),
-                          gnu_bits, gnu_width, gnu_height);
+  if (! icon_bitmap)
+    icon_bitmap =
+      XCreateBitmapFromData (x_current_display, FRAME_X_WINDOW (f),
+                            gnu_bits, gnu_width, gnu_height);
   x_wm_set_icon_pixmap (f, icon_bitmap);
   f->display.x->icon_bitmap_flag = 1;
 #else /* ! defined (HAVE_X11) */